export class ClientListItemModel {
    address: string;
    birthDate: string;
    age:number;
    get birthdayCount(): number { //还有多久过生日
        let result = -1;
        if (this.birthDate) {
            const target = new Date(this.birthDate);
            const now = new Date();
            const sub = now.getTime() - target.getTime();
            result = sub / 1000 / 60 / 60 / 24;
            result = Math.ceil(result);
            if (result < 0) result = 0;
        }
        return result;
    }

    clientId: string;
    clientRole: string; //投保人|被保人
    mobilePhone: string;
    name: string;
    premium: string;          //年缴保费
    sex: string;
    totalPolicy: string;  //保单数
    vipFlag: string;      //vip等级|类型
}
